<!--
  描述：服务分类-产品分类关联table页
  @author tanghongjun
  @since 2020-08-25 14:35:13
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--规定复选框列置于第1列，居中显示-->
        <th lay-data="{field:'servCategId',  width:80, unresize:true, align:'center'}">服务分类</th>
        <th lay-data="{field:'categOneId',width:130, unresize:true, align:'center'}">后台一级产品分类</th>
        <th lay-data="{field:'categId',width:130, unresize:true, align:'center'}">后台二级产品分类</th>
        <th lay-data="{field:'productGroupcId', width:150, unresize:true, align:'center'}">关联前台分类</th>
        <th lay-data="{field:'productGroupcName', width:170, unresize:true, align:'center'}">C类产品组</th>
        <th lay-data="{field:'productGroupfId',  width:170, unresize:true, align:'center'}">F类产品组</th>
        <th lay-data="{field:'productGroupfName', width:170, unresize:true, align:'center'}">B类产品组</th>
        <th lay-data="{field:'perTime', unresize:true, width:140, align:'center'}">生效时间</th>
        <th lay-data="{field:'disclaimer', unresize:true, align:'center'}">免责条款</th>
        <th lay-data="{field:'productGroupbId', width:230, unresize:true, align:'center'}">最近修改人/时间</th>
        <!--规定操作列置于最后-->
        <th lay-data="{field:'操作', width:100, unresize:true, align:'center', fixed:'right'}">操作</th>
        <!--其他规范
            值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
            金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
            通常情况下，时间或日期列靠后放置(操作列前)，居中显示
            -->
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td th:text="${item.servCategName}">servCategName</td>
        <td th:text="${item.categOneName}">categOneName</td>
        <td th:text="${item.categName}">categName</td>
        <td th:text="${item.relateFrontCategStr}">relateFrontCategStr</td>
        <td th:text="${(item.perProductGroupcName == null ? '-' : item.perProductGroupcName )+'/'+ (item.productGroupcName == null ? '-' : item.productGroupcName) }">productGroupcName</td>
        <td th:text="${(item.perProductGroupfName == null ? '-' : item.perProductGroupfName )+'/'+ (item.productGroupfName == null ? '-' : item.productGroupfName) }">productGroupcName</td>
        <td th:text="${(item.perProductGroupbName == null ? '-' : item.perProductGroupbName )+'/'+ (item.productGroupbName == null ? '-' : item.productGroupbName) }">productGroupcName</td>
        <td th:text="${item.perTime == null ? '-' : T(com.zmn.common.utils.date.DateUtil).toString(item.perTime)}">perTime</td>
        <td th:text="${item.disclaimer == null || item.disclaimer == '' ? '--' : item.disclaimer}">disclaimer</td>
        <td th:text="${(item.creater != null ? item.updater+'/' : '')+T(com.zmn.common.utils.date.DateUtil).toString(item.updateTime)}">updateTime</td>
        <td>
            <a class="layui-btn layui-btn-xs bth-operation" th:dataId="${item.groupId}" th:data-index="${itemStat.index}" th:id="${'serv_'+item.groupId}">操作</a>
         </td>
    </tr>
    </tbody>
</table>
